import { BroadCastCall } from "../../broadCast/BroadCastCall";
import { MessageBlock } from "../../../../../Framework/MQ/MessageBlock";
import { SUpdateMsg } from "../../../../../Message/Game/SUpdateMsg";
import { CopyConfig } from "../../../resource/CopyConfig";
import { Language } from "../../../../../extend/language/Language";
import { Alert } from "../../../../../com/mui/controls/Alert";
//class NewBattleFieldKickOutCommand
    
    export  class NewBattleFieldKickOutCommand extends BroadCastCall
    {
        constructor(arg1: Object)
        {
            super(arg1);
            return;
        }

        public /* override */ call(arg1: MessageBlock): void
        {
            var loc1=arg1.messageBase as SUpdateMsg;
            var loc2=CopyConfig.instance.getInfoByCode(loc1.value);
            var loc3=loc2 ? loc2.name : Language.getString(40663);
            Alert.show(Language.getStringByParam(41691, loc3), null, Alert.OK);
            return;
        }
    }
